package org.northking.service;

import org.springframework.stereotype.Service;

@Service
public class ConsumerC extends FruitShop {

    @Override
    public Double totalPrice(int... count) {
        return super.getApplePrice(count[0])
                + super.getStrawberryPrice(count[1]) * 0.8
                + super.getMangoPrice(count[2]);
    }
}
